package com.dq.controller.in;

import com.dq.controller.in.base.BaseAdminQuery;
import com.dq.domain.message.oneself.Message;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author cf
 */
@Data
@ApiModel(value = "通用消息查询实例")
public class MessageQuery extends BaseAdminQuery {
    @ApiModelProperty("类型: 区分用户/门店/boss查询")
    public  Type type;
    @ApiModelProperty("门店Id")
    public Long orgId;

    @ApiModelProperty("搜索框输入内容")
    public String theme;

    @ApiModelProperty("消息类型（指令/通知）")
    public Message.MessageType messageType;

    @ApiModelProperty("开始时间")
    public Long beginSearchTime;
    @ApiModelProperty("结束时间")
    public Long endSearchTime;


    public enum Type{
        /**
         * 角标位置不可变， 名称不可变
         */
        user("员工"),
        org("门店"),
        boss("平台")
        ;

        public String name;

        Type(String name){
            this.name = name;
        }
    }
}
